package com.tuling.JUC;

import com.sun.source.tree.SynchronizedTree;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.LockSupport;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @Type ExecutorUtil.java
 * @Desc
 * @Author wzw
 * @Date 2024/9/10 15:47
 */
public class ExecutorUtil {
    public static  void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(5);

        ExecutorService executorService1 = Executors.newSingleThreadExecutor();

        ReentrantLock reentrantLock = new ReentrantLock();
        reentrantLock.lock();
        reentrantLock.unlock();
        ThreadLocal<String> threadLocal = new ThreadLocal<>();
        threadLocal.set("x");
        threadLocal.set("y");

        System.out.println(threadLocal.get());



        Thread thread = new Thread(() -> {

        });


    }

    public  void  vv(){

    }
}
